package com.xiaotao.util;

public class CacheKeyUtil {

    // 用户点赞帖子的缓存键
    public static String getUserLikeKey(Integer userId, Long postId) {
        return "user:like:" + userId + ":" + postId;
    }

    // 帖子点赞数的缓存键
    public static String getPostLikeCountKey(Long postId) {
        return "post:like:count:" + postId;
    }

    // 用户偏好的缓存键
    public static String getUserPreferenceKey(Integer userId) {
        return "user:preference:" + userId;
    }

    // 推荐帖子的缓存键
    public static String getRecommendedPostsKey(Integer userId) {
        return "post:recommended:" + userId;
    }

    // 热门帖子的缓存键
    public static String getHotPostsKey() {
        return "post:hot";
    }
}